package com.zzz.dao;

import com.zzz.bean.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author aXuan-zmx
 * @project com.zzz
 * @create 2021-04-29 21:29
 * @description 功能描述
 */
@Repository
public interface UserDao {
    @Select("select * from user")
    public List<User> findAll();

    @Insert("insert into user (name,gender,email) values (#{name},#{gender},#{email})")
    boolean save(User user);

}
